﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Domain.Entities.Auditing;

namespace XHD.WXZJ.Posts
{
  
    public class PostUser : CreationAuditedEntity<int>
    {
           /// <summary>
        /// User id.
        /// </summary>
        public virtual long UserId { get; set; }

        /// <summary>
        /// Role id.
        /// </summary>
        public virtual int PostId { get; set; }

        /// <summary>
        /// Creates a new <see cref="PostUser"/> object.
        /// </summary>
        public PostUser()
        {

        }

        /// <summary>
        /// Creates a new <see cref="PostUser"/> object.
        /// </summary>
        /// <param name="userId">User id</param>
        /// <param name="roleId">Role id</param>
        public PostUser(long userId, int postId)
        {
            UserId = userId;
            PostId = postId;
        }
    }
}
